package main;

import java.util.logging.Formatter;
import java.util.logging.LogRecord;
import java.util.Date;

public class OneLineLogFormatter extends Formatter{

	public OneLineLogFormatter(){
		super();
	}
	
	public String format(LogRecord record){
		
		String t = String.format("[%1$td/%1$tm/%1$ty %1$tH:%1$tM:%1$tS]", record.getMillis());
		
		return String.format("%s %s: %s\n",
				t,
				record.getLevel().getName(),
					formatMessage(record)
			
		);
	}


}